package com.ruoyi.service.project.model;

import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 作用：项目变更对象
 * </p>
 *
 * @author Zane
 * @since 2025-10-12 9:44
 */
@Getter
@Setter
@Accessors(chain = true)
public class ProjectLogModel {

  /**
   * 项目id
   */
  private String projectId;
  /**
   * 项目变更列表
   */
  List<ProjectLogDetail> projectLogList;

  public List<ProjectLogDetail> getProjectLogListNoneNull() {
    return Optional.ofNullable(projectLogList).orElseGet(ArrayList::new);
  }
}
